package com.ruoyi.hospital.mapper;

import java.util.List;
import com.ruoyi.hospital.domain.Appointments;
import org.apache.ibatis.annotations.Mapper;

/**
 * 预约订单Mapper接口
 * 
 * @author ruoyi
 * @date 2025-07-01
 */
@Mapper
public interface AppointmentsMapper
{
    /**
     * 查询预约订单
     * 
     * @param appointmentId 预约订单主键
     * @return 预约订单
     */
    public Appointments selectAppointmentsByAppointmentId(String appointmentId);

    /**
     * 查询预约订单列表
     * 
     * @param appointments 预约订单
     * @return 预约订单集合
     */
    public List<Appointments> selectAppointmentsList(Appointments appointments);

    /**
     * 新增预约订单
     * 
     * @param appointments 预约订单
     * @return 结果
     */
    public int insertAppointments(Appointments appointments);

    /**
     * 修改预约订单
     * 
     * @param appointments 预约订单
     * @return 结果
     */
    public int updateAppointments(Appointments appointments);

    /**
     * 删除预约订单
     * 
     * @param appointmentId 预约订单主键
     * @return 结果
     */
    public int deleteAppointmentsByAppointmentId(String appointmentId);

    /**
     * 批量删除预约订单
     * 
     * @param appointmentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAppointmentsByAppointmentIds(String[] appointmentIds);
}
